package com.eschool.service;

import com.eschool.pojo.CardDAO;
import com.eschool.pojo.PurchaseDAO;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;

public interface CardService {
    public List<PurchaseDAO> stuid2purc(String studentId);
    public List<PurchaseDAO> getPurcByDate(String studentId, @RequestParam("startDate") @DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate,
                                           @RequestParam("endDate") @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate);
}